package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.domain.po.BookEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

@Mapper
public interface BookMapper extends BaseMapper<BookEntity> {
    List<BookEntity> queryBooksByUserName(@Param("username") String username);
    List<BookEntity> queryBooksByAuthor(@Param("author") String author);
    List<BookEntity> queryBooksByBookType(@Param("bookType") String bookType);

    List<BookEntity> queryNotBorrowedBooks();
}
